package com.next.network;

import io.netty.channel.Channel;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName ChannelMap
 * @Author liu zhiyong
 * @Date 2020/9/16 10:30
 * @Version 1.0
 */
public class ChannelMap {

    private static Map<String, Channel> channelMap;
    static {
        channelMap = new HashMap<String, Channel>();
    }

    public static void put(String key, Channel channel){
        channelMap.put(key, channel);
    }

    public static Channel get(String key) {
        return channelMap.get(key);
    }
}
